3.467 \(\int \cot ^6(e+f x) \sqrt{a-a \sin ^2(e+f x)} \, dx\)

Optimal. Leaf size=124 \[ -\frac{\tan (e+f x) \sqrt{a \cos ^2(e+f x)}}{f}-\frac{\csc ^5(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{5 f}+\frac{\csc ^3(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{f}-\frac{3 \csc (e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{f} \]

[Out]

(-3*Sqrt[a*Cos[e + f*x]^2]*Csc[e + f*x]*Sec[e + f*x])/f + (Sqrt[a*Cos[e + f*x]^2]*Csc[e + f*x]^3*Sec[e + f*x])
/f - (Sqrt[a*Cos[e + f*x]^2]*Csc[e + f*x]^5*Sec[e + f*x])/(5*f) - (Sqrt[a*Cos[e + f*x]^2]*Tan[e + f*x])/f

________________________________________________________________________________________

Rubi [A]  time = 0.121511, antiderivative size = 124, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3176, 3207, 2590, 270} \[ -\frac{\tan (e+f x) \sqrt{a \cos ^2(e+f x)}}{f}-\frac{\csc ^5(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{5 f}+\frac{\csc ^3(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{f}-\frac{3 \csc (e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{f} \]

Antiderivative was successfully verified.

[In]

Int[Cot[e + f*x]^6*Sqrt[a - a*Sin[e + f*x]^2],x]

[Out]

(-3*Sqrt[a*Cos[e + f*x]^2]*Csc[e + f*x]*Sec[e + f*x])/f + (Sqrt[a*Cos[e + f*x]^2]*Csc[e + f*x]^3*Sec[e + f*x])
/f - (Sqrt[a*Cos[e + f*x]^2]*Csc[e + f*x]^5*Sec[e + f*x])/(5*f) - (Sqrt[a*Cos[e + f*x]^2]*Tan[e + f*x])/f

Rule 3176

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Int[ActivateTrig[u*(a*cos[e + f*x]^2)^p]
, x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0]

Rule 3207

Int[(u_.)*((b_.)*sin[(e_.) + (f_.)*(x_)]^(n_))^(p_), x_Symbol] :> With[{ff = FreeFactors[Sin[e + f*x], x]}, Di
st[((b*ff^n)^IntPart[p]*(b*Sin[e + f*x]^n)^FracPart[p])/(Sin[e + f*x]/ff)^(n*FracPart[p]), Int[ActivateTrig[u]
*(Sin[e + f*x]/ff)^(n*p), x], x]] /; FreeQ[{b, e, f, n, p}, x] &&  !IntegerQ[p] && IntegerQ[n] && (EqQ[u, 1] |
| MatchQ[u, ((d_.)*(trig_)[e + f*x])^(m_.) /; FreeQ[{d, m}, x] && MemberQ[{sin, cos, tan, cot, sec, csc}, trig
]])

Rule 2590

Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*tan[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> -Dist[f^(-1), Subst[Int[(1 - x^2
)^((m + n - 1)/2)/x^n, x], x, Cos[e + f*x]], x] /; FreeQ[{e, f}, x] && IntegersQ[m, n, (m + n - 1)/2]

Rule 270

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*(a + b*x^n)^p,
 x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0]

Rubi steps

\begin{align*} \int \cot ^6(e+f x) \sqrt{a-a \sin ^2(e+f x)} \, dx &=\int \sqrt{a \cos ^2(e+f x)} \cot ^6(e+f x) \, dx\\ &=\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \cos (e+f x) \cot ^6(e+f x) \, dx\\ &=-\frac{\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \frac{\left (1-x^2\right )^3}{x^6} \, dx,x,-\sin (e+f x)\right )}{f}\\ &=-\frac{\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \left (-1+\frac{1}{x^6}-\frac{3}{x^4}+\frac{3}{x^2}\right ) \, dx,x,-\sin (e+f x)\right )}{f}\\ &=-\frac{3 \sqrt{a \cos ^2(e+f x)} \csc (e+f x) \sec (e+f x)}{f}+\frac{\sqrt{a \cos ^2(e+f x)} \csc ^3(e+f x) \sec (e+f x)}{f}-\frac{\sqrt{a \cos ^2(e+f x)} \csc ^5(e+f x) \sec (e+f x)}{5 f}-\frac{\sqrt{a \cos ^2(e+f x)} \tan (e+f x)}{f}\\ \end{align*}

Mathematica [A]  time = 0.195662, size = 67, normalized size = 0.54 \[ \frac{(235 \cos (2 (e+f x))-90 \cos (4 (e+f x))+5 \cos (6 (e+f x))-182) \csc ^5(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{160 f} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[e + f*x]^6*Sqrt[a - a*Sin[e + f*x]^2],x]

[Out]

(Sqrt[a*Cos[e + f*x]^2]*(-182 + 235*Cos[2*(e + f*x)] - 90*Cos[4*(e + f*x)] + 5*Cos[6*(e + f*x)])*Csc[e + f*x]^
5*Sec[e + f*x])/(160*f)

________________________________________________________________________________________

Maple [A]  time = 0.803, size = 65, normalized size = 0.5 \begin{align*} -{\frac{\cos \left ( fx+e \right ) a \left ( 5\, \left ( \sin \left ( fx+e \right ) \right ) ^{6}+15\, \left ( \sin \left ( fx+e \right ) \right ) ^{4}-5\, \left ( \sin \left ( fx+e \right ) \right ) ^{2}+1 \right ) }{5\, \left ( \sin \left ( fx+e \right ) \right ) ^{5}f}{\frac{1}{\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(f*x+e)^6*(a-a*sin(f*x+e)^2)^(1/2),x)

[Out]

-1/5*cos(f*x+e)*a*(5*sin(f*x+e)^6+15*sin(f*x+e)^4-5*sin(f*x+e)^2+1)/sin(f*x+e)^5/(a*cos(f*x+e)^2)^(1/2)/f

________________________________________________________________________________________

Maxima [A]  time = 1.50161, size = 92, normalized size = 0.74 \begin{align*} -\frac{16 \, \sqrt{a} \tan \left (f x + e\right )^{6} + 8 \, \sqrt{a} \tan \left (f x + e\right )^{4} - 2 \, \sqrt{a} \tan \left (f x + e\right )^{2} + \sqrt{a}}{5 \, \sqrt{\tan \left (f x + e\right )^{2} + 1} f \tan \left (f x + e\right )^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^6*(a-a*sin(f*x+e)^2)^(1/2),x, algorithm="maxima")

[Out]

-1/5*(16*sqrt(a)*tan(f*x + e)^6 + 8*sqrt(a)*tan(f*x + e)^4 - 2*sqrt(a)*tan(f*x + e)^2 + sqrt(a))/(sqrt(tan(f*x
 + e)^2 + 1)*f*tan(f*x + e)^5)

________________________________________________________________________________________

Fricas [A]  time = 1.64918, size = 221, normalized size = 1.78 \begin{align*} \frac{{\left (5 \, \cos \left (f x + e\right )^{6} - 30 \, \cos \left (f x + e\right )^{4} + 40 \, \cos \left (f x + e\right )^{2} - 16\right )} \sqrt{a \cos \left (f x + e\right )^{2}}}{5 \,{\left (f \cos \left (f x + e\right )^{5} - 2 \, f \cos \left (f x + e\right )^{3} + f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^6*(a-a*sin(f*x+e)^2)^(1/2),x, algorithm="fricas")

[Out]

1/5*(5*cos(f*x + e)^6 - 30*cos(f*x + e)^4 + 40*cos(f*x + e)^2 - 16)*sqrt(a*cos(f*x + e)^2)/((f*cos(f*x + e)^5
- 2*f*cos(f*x + e)^3 + f*cos(f*x + e))*sin(f*x + e))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)**6*(a-a*sin(f*x+e)**2)**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.24039, size = 235, normalized size = 1.9 \begin{align*} \frac{{\left ({\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )}^{5} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) - 20 \,{\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )}^{3} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) + 240 \,{\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) + \frac{320 \, \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right )}{\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}\right )} \sqrt{a}}{160 \, f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^6*(a-a*sin(f*x+e)^2)^(1/2),x, algorithm="giac")

[Out]

1/160*((1/tan(1/2*f*x + 1/2*e) + tan(1/2*f*x + 1/2*e))^5*sgn(tan(1/2*f*x + 1/2*e)^4 - 1) - 20*(1/tan(1/2*f*x +
 1/2*e) + tan(1/2*f*x + 1/2*e))^3*sgn(tan(1/2*f*x + 1/2*e)^4 - 1) + 240*(1/tan(1/2*f*x + 1/2*e) + tan(1/2*f*x
+ 1/2*e))*sgn(tan(1/2*f*x + 1/2*e)^4 - 1) + 320*sgn(tan(1/2*f*x + 1/2*e)^4 - 1)/(1/tan(1/2*f*x + 1/2*e) + tan(
1/2*f*x + 1/2*e)))*sqrt(a)/f